﻿using System;
using Controller;

public partial class Modules_SlideShowControl : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        // Hien thi
        if (!IsPostBack)
        {
            GetDataPanoramaLon();
        }
    }

    public void GetDataPanoramaLon()
    {
        var controller = new VYC01Controller();
        var list = controller.GetListPanoramaLon(1, 1);
        if (list.Count > 0)
        {
            repeaterPanoramaLon.DataSource = list;
            repeaterPanoramaLon.DataBind();

            repeaterCaption.DataSource = list;
            repeaterCaption.DataBind();
        }
    }
    
}